package com.hospital.hospital.mapper;


import com.hospital.hospital.bean.Department;
import com.hospital.hospital.bean.Doctor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DoctorMapper {

    List<Doctor> queryAll()throws Exception;

    void insert(Doctor doctor)throws Exception;

    void deleteByDoctorId(Integer doctorId )throws Exception;

    void updateById(Doctor doctor)throws Exception;

    List<Doctor> queryLike(String likename)throws Exception;

    Doctor queryById(Integer doctorId) throws Exception;


    List<Doctor> queryByPage(Integer p);
}
